$drag-height: 60px;
$search-explore-height: 200px;

.bottomArea {
  width: 100%;
  position: fixed;
  left: 0;
  bottom: -100vh;
  z-index: 999;
  border-radius: 40px 40px 0 0;

  &.inTransition {
    transition: bottom ease-in-out 0.5s;
  }

  .dragArea {
    width: 100%;
    height: $drag-height;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    &::before {
      content: '';
      width: 150px;
      height: 10px;
      border-radius: 4px;
      background: #747474;
      display: block;
    }
  }

  .searchAndExplore {
    width: 100%;
    height: $search-explore-height;
    display: flex;
    flex-direction: column;

    .search {
      width: 95%;
      height: 70px;
      flex-shrink: 0;
      margin: auto;
      border-radius: 4vw;
      background: #fff;
      padding: 0 25px;
      box-sizing: border-box;
      box-shadow: 0 0 8px rgba(70, 79, 86, 0.25);
      display: flex;
      align-items: center;

      image {
        width: 36px;
        height: 36px;
        margin-right: 20px;
      }

      input {
        width: 100%;
        height: 100%;
        font-size: 28px;
      }
    }

    .explore {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 40px;
      font-size: 35px;
      color: #333;
    }
  }

  .list {
    width: 100%;
    height: 100vh;
    z-index: 1;
    box-sizing: border-box;
    background: rgba(244, 244, 244, 1);
    padding: 20px;

    .item {
      width: 90%;
      height: 300px;
      flex-shrink: 0;
      margin: 20px auto;
      border-radius: 20px;
      background: #fff;
    }
  }

  .backToViewBtn {
    width: 80px;
    height: 80px;
    position: fixed;
    bottom: calc($drag-height + $search-explore-height + 40px);
    right: 30px;
    background: #fff url("./backToCenter.png") no-repeat center center;
    border-radius: 50%;
    background-size: 50%;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .15);
    z-index: -1;
  }
}

